<?php
    header("Access-Control-Allow-Origin: *");
    header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
    include "../../config.php";



//    //把读出的这条数据表格一下，status 值为当前时间
//    $_data['collect_status']='done';
//    $_sql=update_date($table_prefix."facebook_page_url",$_data,"nid",$_url[0]['nid']);
//    //执行语句
//    mysql_query($_sql) or die("Error: " . mysql_error().$_sql);




?>
<form method="post" action="collect_page_info_function.php" name="collection">
<input name="url" value="" />
<textarea name="content" rows="10" cols="50"></textarea>
</form>


<!--//写一个js,监测form的两个项。是否都填写内容，都填写内容的话，倒计时5秒，自动提交表格-->
<script>
    function check_form()
    {
//检查是否都有内容
        if(document.collection.url.value=="" || document.collection.content.value=="")
        {
            return false;
        }
        else
        {
            document.collection.submit();

        }


    }
    setTimeout("check_form()",5000);

</script>


